<%inherit file="/base/index.html"/>
<%def name="header()">${_(u"Documents")}</%def>
<%def name="menu()">
${h.link_to(_(u"New document"), h.url_for(action="new", id=None))}
</%def>
<table class="data">
	<tr>
		<th>${_("ID")}</th>
		<th>${_("Title")}</th>
		<th>${_("Body")}</th>
	</tr>
	% for doc in c.paginator:
	<tr>  
		<td>${doc.id}</td> 
		<td>${h.link_to(doc.title, h.url_for(action="view", id=doc.id))}</td>
		<td>${h.first100(doc.body)}</td>
	</tr>		 
	% endfor  
<table>
<p>${ c.paginator.pager('~2~') }</p>

